import {View} from 'backbone';
export default class MyView extends View {
initialize() {
this.$el.css('color', 'red');
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
//http://caniuse.com/#feat=calc | |
//union bool str (-webkit-calc, -moz-calc, calc) | |
//alternatively see last version where i did a version check based on can i use | |
document.addEvent("domready", function() {//based off https://gist.github.com/Rob-ot/3399053 | |
Browser.Features.calc = false;//union bool str (-webkit-calc, -moz-calc, calc) | |
["","-webkit-","-moz-","-o-"].some(function(prefix) { | |
var $el = new Element('div', { | |
styles: { | |
width: prefix + "calc(5px)" | |
} |
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
/** | |
* Copyright 2013 Facebook, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
/* | |
UPDATE July 2016 , moved and updated to here: https://github.com/Sumbera/gLayers.Leaflet | |
Generic Canvas Overlay for leaflet, | |
Stanislav Sumbera, April , 2014 | |
- added userDrawFunc that is called when Canvas need to be redrawn | |
- added few useful params fro userDrawFunc callback | |
- fixed resize map bug | |
inspired & portions taken from : https://github.com/Leaflet/Leaflet.heat |
OlderNewer