Skip to content

Instantly share code, notes, and snippets.

@tilleps
tilleps / gist:5974119
Created July 11, 2013 09:51
CanJS jQuery.fn.control
//
// CanJS jQuery.fn.control
//
// http://canjs.com/docs/jQuery.fn.control.html
//
// The jQuery.fn.control method do not appear to work with string parameter
//
//
// Define Plugin
//
// HTML
//
<html>
<head></head>
<body class="loading"></body>
</html>
//
// Template (layout.hbr)
// doesn't work
App.ApplicationView = Ember.View.extend({
didInsertElement: function() {
$(document).foundation();
}
});
// works
App.ApplicationView = Ember.View.extend({
didInsertElement: function() {