Created
September 13, 2012 19:45
-
-
Save sevifives/3717076 to your computer and use it in GitHub Desktop.
target action eventing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.myFunView = SC.View.extend({ | |
triggerABinding: function () { | |
console.log('huzzah!') | |
}, | |
createChildViews: function () { | |
var cvs = [], cv; | |
cv = this.createChildView(SC.ButtonView,{ | |
target: this, | |
action: 'triggerABinding' | |
}); | |
cvs.push(cv); | |
this.set('childViews',cvs); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment