Skip to content

Commit

Permalink
fix(fa-surface): Use the transclude function from post
Browse files Browse the repository at this point in the history
Fixes #328
  • Loading branch information
thaiat committed Jan 28, 2015
1 parent 501742a commit 11139ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/directives/fa-surface.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ angular.module('famous.angular')
transclude: true,
template: '<div class="fa-surface"></div>',
restrict: 'EA',
compile: function(tElem, tAttrs, transclude){
compile: function(tElem, tAttrs){
return {
pre: function(scope, element, attrs){

Expand Down Expand Up @@ -320,7 +320,7 @@ angular.module('famous.angular')
throw new Error('Surfaces are leaf nodes of the Famo.us render tree and cannot accept rendernode children. To include additional Famo.us content inside of a fa-surface, that content must be enclosed in an additional fa-app.');
});
},
post: function(scope, element, attrs){
post: function(scope, element, attrs, ctrl, transclude){
var isolate = $famousDecorator.ensureIsolate(scope);

var updateContent = function() {
Expand Down

0 comments on commit 11139ed

Please sign in to comment.