text
stringlengths 0
14.1k
|
---|
} |
else { |
if (!eventCallbacks[eventName]) { |
return false; |
} |
eventCallbacks[eventName] = null; |
} |
return true; |
} |
/** |
* Returns a domain's root domain. |
* Eg. returns http://vimeo.com when http://vimeo.com/channels is sbumitted |
* |
* @param url (String): Url to test against. |
* @return url (String): Root domain of submitted url |
*/ |
function getDomainFromUrl(url) { |
if (url.substr(0, 2) === '//') { |
url = window.location.protocol + url; |
} |
var url_pieces = url.split('/'), |
domain_str = ''; |
for(var i = 0, length = url_pieces.length; i < length; i++) { |
if(i<3) {domain_str += url_pieces[i];} |
else {break;} |
if(i<2) {domain_str += '/';} |
} |
return domain_str; |
} |
function isFunction(obj) { |
return !!(obj && obj.constructor && obj.call && obj.apply); |
} |
function isArray(obj) { |
return toString.call(obj) === '[object Array]'; |
} |
// Give the init function the Froogaloop prototype for later instantiation |
Froogaloop.fn.init.prototype = Froogaloop.fn; |
// Listens for the message event. |
// W3C |
if (window.addEventListener) { |
window.addEventListener('message', onMessageReceived, false); |
} |
// IE |
else { |
window.attachEvent('onmessage', onMessageReceived); |
} |
// Expose froogaloop to the global object |
return (window.Froogaloop = window.$f = Froogaloop); |
})(); |
" gpl-2.0 |
GeoCat/QGIS src/core/qgsvectorlayereditpassthrough.cpp 3835 "/*************************************************************************** |
qgsvectorlayereditpassthrough.cpp |
--------------------- |
begin : Jan 12 2015 |
copyright : (C) 2015 by Sandro Mani |
email : manisandro at gmail dot com |
*************************************************************************** |
* * |
* This program is free software; you can redistribute it and/or modify * |
* it under the terms of the GNU General Public License as published by * |
* the Free Software Foundation; either version 2 of the License, or * |
* (at your option) any later version. * |
* * |
***************************************************************************/ |
#include ""qgsvectorlayereditpassthrough.h"" |
#include ""qgsvectorlayer.h"" |
#include ""qgsvectordataprovider.h"" |
#include ""qgsvectorlayerundopassthroughcommand.h"" |
QgsVectorLayerEditPassthrough::QgsVectorLayerEditPassthrough( QgsVectorLayer *layer ) |
: mModified( false ) |
{ |
L = layer; |
} |
bool QgsVectorLayerEditPassthrough::isModified() const |
{ |
return mModified; |
} |
bool QgsVectorLayerEditPassthrough::modify( QgsVectorLayerUndoPassthroughCommand *cmd ) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.