Created
April 23, 2010 16:43
-
-
Save preaction/376779 to your computer and use it in GitHub Desktop.
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
/** | |
* makeEditAsset( url ) | |
* Create a callback to edit an asset. Use when attaching to event listeners | |
*/ | |
WebGUI.Admin.prototype.makeEditAsset | |
= function (url) { | |
var self = this; // Scope correction | |
return function() { | |
self.editAsset( url ); | |
}; | |
}; | |
/** | |
* makeGotoAsset( url ) | |
* Create a callback to view an asset. Use when attaching to event listeners | |
*/ | |
WebGUI.Admin.prototype.makeGotoAsset | |
= function ( url ) { | |
var self = this; // Scope correction | |
return function() { | |
self.gotoAsset( url ); | |
}; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment